package com.ms.p2p.provider.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.ms.common.exception.NoticeException;
import com.ms.p2p.entity.account.BankCardImg;
import com.ms.p2p.entity.account.BankCardImgLog;
import com.ms.p2p.producter.Producter;
import com.ms.p2p.queen.SMS;
import com.ms.p2p.service.impl.BankCardLogService;
import com.sun.tools.javac.util.List;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * Created by chensk on 2018/3/22.
 */
@Service
public class UnBindProviderImpl implements com.ms.p2p.provider.UnBindProvider {
    @Autowired
    BankCardLogService bankCardLogService;

    public BankCardImgLog findByUserIdAndBankId(Integer user_id, Integer Bank_id, Integer status) {
        return bankCardLogService.findByUserIdAndBankId(user_id,Bank_id,status);
    }

    public void insert(BankCardImgLog log, java.util.List<BankCardImg> list) throws NoticeException {
        bankCardLogService.insert(log,list);
    }

    public java.util.List<Map<String,Object>> unbindList() {
        return bankCardLogService.unbindList();
    }

    public BankCardImgLog findById(Integer id) {
        return bankCardLogService.findById(id);
    }

    public void update(BankCardImgLog bankCardImgLog) {
        bankCardLogService.update(bankCardImgLog);
    }


}
